#ifndef __SPI_H
#define __SPI_H
#include "GD32f4xx.h"
		

#define FLASH_RCU  			RCU_GPIOF
#define FLASH_PORT			GPIOF
#define FLASH_NSS				GPIO_PIN_6
#define FLASH_SCK   		GPIO_PIN_7
#define FLASH_MISO			GPIO_PIN_8
#define FLASH_MOSI			GPIO_PIN_9


void SPI4_Init(void);
unsigned char SPI4_RW_Byte(unsigned char ch);

		
#endif

